<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登陆页面</title>
</head>
<body>
<form action="/user/login" method="post">
    <div class="form-group">
        <label for="user">用户名：</label>
        <input type="text" name="username" class="form-control" id="user" placeholder="请输入用户名"/>
    </div>

    <div class="form-group">
        <label for="password">密码：</label>
        <input type="password" name="password" class="form-control" id="password" placeholder="请输入密码"/>
    </div>

    <div class="form-inline">
        <label for="code">验证码：</label>
        <input type="text" name="checkCode"
               class="form-control" id="checkCode"
               placeholder="请输入验证码" style="width: 120px;"/>
        <a onclick="document.getElementById('code').src='/checkCode.jsp?v='+Math.random()">
            <img src="/generateCode" title="看不清点击刷新" id="code"/>
        </a>
    </div>

    <hr/>
    <div class="form-group" style="text-align: center;">
        <p style="color:red" th:text="${error}"></p>
        <input class="btn btn-primary" type="submit" value="登录">
        <input class="btn btn-warning" type="reset" value="重置">
    </div>
</form>
</body>
</html>